package com.zenkirin.divacrm.dao.hibernate;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.zenkirin.divacrm.dao.AdminDAO;

public class AdminDAOHibernate extends HibernateDaoSupport implements AdminDAO {

	@Override
	public boolean accessVerify(String username, String password) {
		String param[] = { username, password };
		List list = getHibernateTemplate().find(
				"from Admin where username=? and password=?", param);
		return list.size() == 1;
	}

}
